package com.game.db;

import java.util.ArrayList;

import com.game.entities.HighScoreData;

public class DataBaseAccess {
	/* This is a fake data base access, this will be used until the actual
	 * database is built. This file will contain the different querries.
	 * 
	 * This class might be deprecated if highscore function goes online. It might be good to keep the local highscores in the db.
	 */
	
	//create dummy list
	ArrayList<HighScoreData> hsList = new ArrayList<HighScoreData>();
	
	
	public DataBaseAccess (){
		//add dummy list data.
		hsList.add(new HighScoreData(3287, 1, 791732));
		hsList.add(new HighScoreData(213, 1, 734));
		hsList.add(new HighScoreData(2324, 1, 4368));
		hsList.add(new HighScoreData(525, 1, 34858));
		hsList.add(new HighScoreData(2157, 1, 34573));
		hsList.add(new HighScoreData(9763, 1, 3475347));
	}
	
	public ArrayList<HighScoreData> getHighScore(){
		//run a query to get id?
		//can I use android phone uniqe id, or maybe the google account?
		//google account would require permissions for this..
		
		//returns a dummy list, just for population. Used during test
		return hsList;
		
	}
}
